package common;

/**
 * created by sonite on 2018/8/3
 */
public class AticTest {

    public static void main(String args[]) {
        String body = "<189>2018-08-01 09:47:15 128.18.56.197 %%01SEC/5/ATCKDF(l):log_type=ip_attack_alarm alarm_id=1071402511786610206 device_ip=128.18.56.197 device_type=CLEAN direction=inbound zone_id=1225 zone_name=光通DDOS2_50G_183.131.206.246 zone_ip=183.131.206.246 start_time=\"2018-07-31 17:10:57\" refresh_time=\"\" severity=4 attack_type=\"TCP Connection Flood,Filter Attack\" attacker_ip=\"61.190.205.114,78.85.49.210\" in_pps=390 in_bps=547000 drop_pps=6 " +
                "drop_bps=0 forward_pps=384 forward_bps=543000 attack_status=ATTACK";

        String buffer = StringTransTools.parseString(body,":log_type"," ");
        String logType=buffer.substring(0,buffer.indexOf("|"));
        System.out.println("buffer = " + buffer);
    }



}
